package com.warrior.respository;

import com.warrior.entity.ActivityEntity;
import com.warrior.entity.MatchDetailsEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 赛事详情repository
 * Created by Shawn on 2017/3/30.
 */
@Repository
public interface IMatchDetailsRepository extends JpaRepository<MatchDetailsEntity,String> ,PagingAndSortingRepository<MatchDetailsEntity,String> {


    MatchDetailsEntity findMatchDetailById(String id);

    List<MatchDetailsEntity> findMatchListByActivityByActiveId(ActivityEntity activityEntity);

}
